<!--
  Created by IntelliJ IDEA.
  User: gaoxiang
  Date: 19-12-20
  Time: 上午10:14
 -->
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="zh">
<!-- BEGIN HEADER -->
<div th:fragment="dva_header" class="page-header navbar navbar-fixed-top">
    <!-- BEGIN HEADER INNER -->
    <div class="page-header-inner ">
        <!-- BEGIN LOGO -->
        <div class="page-logo">
            <a href="/">
                <!--<img th:src="@{/metronic/layouts/layout/img/logo.png}" alt="logo" class="logo-default"/>-->
                <h3>后台管理系统</h3>
            </a>
            <div class="menu-toggler sidebar-toggler">
                <span></span>
            </div>
        </div>
        <!-- END LOGO -->
        <!-- BEGIN RESPONSIVE MENU TOGGLER -->
        <a href="javascript:;" class="menu-toggler responsive-toggler" data-toggle="collapse" data-target=".navbar-collapse">
            <span></span>
        </a>
        <!-- END RESPONSIVE MENU TOGGLER -->
        <!-- BEGIN TOP NAVIGATION MENU -->
        <div class="top-menu">
            <ul class="nav navbar-nav pull-right">
                <li class="dropdown dropdown-user">
                    <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
                        <!--<img alt="" class="img-circle" src="${admin.head}" id="myHeadImg"/>-->
                        <span class="username username-hide-on-mobile" th:text="${session['account']['nick']}"> 用户名 </span>
                        <i class="fa fa-angle-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-menu-default">
                        <li>
                            <a href="/admin/info" th:data-param="${'&id=' + session['account']['id']}" class="nav-power">
                                <i class="icon-user"></i> <span class="title">我的资料 </span></a>
                        </li>
                        <li>
                            <a href="/admin/headimg" th:data-param="${'&id=' + session['account']['id']}" class="nav-power">
                                <i class="icon-picture"></i> <span class="title">我的头像</span> </a>
                        </li>
                        <li>
                            <a href="/account/edit" th:data-param="${'&id=' + session['account']['id']}" class="nav-power">
                                <i class="icon-lock"></i> <span class="title">密码修改 </span> </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="">
                                <i class="icon-lock"></i> 锁定屏幕
                            </a>
                        </li>
                        <li>
                            <a href="/login/logout">
                                <i class="icon-key"></i> 退出 </a>
                        </li>
                    </ul>
                </li>
                <!-- BEGIN USER LOGIN DROPDOWN -->
                <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->
                <!--<c:if test="${account.type==1}">
                    <li class="dropdown dropdown-user">
                        <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
                            <img alt="" class="img-circle" src="${admin.head}" id="myHeadImg"/>
                            <span class="username username-hide-on-mobile"> ${admin.name} </span>
                            <i class="fa fa-angle-down"></i>
                        </a>
                        <ul class="dropdown-menu dropdown-menu-default">
                            <li>
                                <a href="/admin/info" data-param="&id=${admin.id}" class="nav-power">
                                    <i class="icon-user"></i> <span class="title">我的资料 </span></a>
                            </li>
                            <li>
                                <a href="/admin/headimg" data-param="&id=${admin.id}" class="nav-power">
                                    <i class="icon-picture"></i> <span class="title">我的头像</span> </a>
                            </li>
                            <li>
                                <a href="/account/edit" data-param="&id=${account.id}" class="nav-power">
                                    <i class="icon-lock"></i> <span class="title">密码修改 </span> </a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <a href="">
                                    <i class="icon-lock"></i> 锁定屏幕 </a>
                            </li>
                            <li>
                                <a href="/login/logout">
                                    <i class="icon-key"></i> 退出 </a>
                            </li>
                        </ul>
                    </li>
                </c:if>-->
                <!-- END USER LOGIN DROPDOWN -->
                <!-- BEGIN QUICK SIDEBAR TOGGLER -->
                <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->
                <!--<li class="dropdown dropdown-quick-sidebar-toggler">
                    <a href="javascript:;" class="dropdown-toggle">
                        <i class="icon-logout"></i>
                    </a>
                </li>-->
                <!-- END QUICK SIDEBAR TOGGLER -->
            </ul>
        </div>
        <!-- END TOP NAVIGATION MENU -->
    </div>
    <!-- END HEADER INNER -->
</div>
<!-- END HEADER -->
<!-- BEGIN HEADER & CONTENT DIVIDER -->
<div class="clearfix"></div>
<!-- END HEADER & CONTENT DIVIDER -->
</html>